package org.j4me.info;

import org.j4me.ui.DeviceScreen;
import org.j4me.ui.Dialog;
import org.j4me.ui.components.Label;

public class MessageScreen extends Dialog {
	
	
	private DeviceScreen _caller;

	public MessageScreen(DeviceScreen caller, String message) {
		setTitle("Information");
		Label label = new Label(message);
		append(label);
		setMenuText(null, "Ok");
		_caller = caller;
		
		
		
	}
	
	protected void acceptNotify() {
		_caller.show();
	}
}
